from base.base import Base
import pytest
from pytest_assume.plugin import assume

class LoginService(Base):
    def login(self , username , password):
        """登录"""
        self.switch_node('login_service')
        self.fill('username_input',username)
        self.fill('password_input',password)
        self.click('login_button')
        dy1 = self.text_content('login_text')
        # 登录进入首页断言
        assume('平台总览' == dy1,f'断言失败，实际结果为：{dy1}')

